import { requestPromise, /* setStatePromise ,*/ } from 'ssccommon/utils/asyncFunctions.js';

import {
  toast,
} from 'nc-lightapp-front';

/**
 * @method asyncPointGridRef
 * @return {Object} 出参报文
 */
async function asyncPointGridRef(
  data,
  url = `/nccloud/sscbd/sscbase/PointGridRef.do`, 
) {
  try {
    const result = await requestPromise({
      url,
      data,
    });
    return result
  } catch (e) {
    toast({ title: e.message, duration: 5, color: 'danger', })
  }
}

export {
  asyncPointGridRef,
}